mips-force-nomadd4
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 18 Nov 2022 08:47:27 +0000 (08:47 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 18 Nov 2022 08:47:27 +0000 (08:47 +0000)
commit811ae08c0740d9ffccdde8d98575c162ebc4d7d7
tree1b0b6886479637bf9a9df947abac46c4fa44b632
parenta322382e20d380047a2eb26b7a9945bfbd75b1e7
mips-force-nomadd4

The MIPS port aims to support the Loongson 3 family of CPUs in addition
of the other MIPS CPUs. On the Loongson 3 family the MADD4 instructions
are fused, while they are not fused on the other MIPS CPUs. In order to
support both, we have to disabled those instructions.

For that, the patch below basically corresponds to the --with-madd4=no
used on the GCC side.

Gbp-Pq: Topic mips
Gbp-Pq: Name mips-force-nomadd4.patch
clang/lib/Basic/Targets/Mips.h
llvm/lib/Target/Mips/MipsSubtarget.cpp